from django import template
from l2ldjango.apps.category.models import *

def sidebar_category_list(request):
	categories=Category.objects.filter(status='ENABLED')
	if request.user.id and request.user.is_active:
		bookmark = "show"
	else:
		bookmark = "hide"
	return {'categories':categories,'bookmark':bookmark}

register = template.Library()
#register.inclusion_tag('category/dropdown_categories.html')(dropdown_categories)
#register.inclusion_tag('category/home_categories_list.html')(home_category_list)
register.inclusion_tag('category/sidebar_categories_list.html')(sidebar_category_list)

